python requests set header cookie

41

python requests set header cookie -

import requests

cookies = {'enwiki_session': '17ab96bd8ffbe8ca58a78657a918558'}

r = requests.post('http://wikipedia.org', cookies=cookies)

Comments

Submit
0 Comments